import request from '@/utils/request'

// 查询文件下载列表
export function listFileUpload(query) {
  return request({
    url: '/automatic/fileUpload/list',
    method: 'get',
    params: query
  })
}

// 查询文件下载详细
export function getFileUpload(id) {
  return request({
    url: '/automatic/fileUpload/' + id,
    method: 'get'
  })
}

// 新增文件下载
export function addFileUpload(data) {
  return request({
    url: '/automatic/fileUpload',
    method: 'post',
    data: data
  })
}

// 修改文件下载
export function updateFileUpload(data) {
  return request({
    url: '/automatic/fileUpload',
    method: 'put',
    data: data
  })
}

// 删除文件下载
export function delFileUpload(id) {
  return request({
    url: '/automatic/fileUpload/' + id,
    method: 'delete'
  })
}
